<!-- <div class="edit_toolbar" id="edit_toolbar" class="ui-widget ui-helper-clearfix">      	
        <button type="button" class="ui-state-default ui-corner-all" id="add-select-radio" onclick="addselect('radio');">
        单选题
        </button>
        <button type="button" class="ui-state-default ui-corner-all"  id="add-select-checkbox" onclick="addselect('checkbox');">
        多选题
        </button>
        <button type="button" class="ui-state-default ui-corner-all"  id="add-text-input" onclick="addselect('input');">
       填空题</button>
        <button type="button" class="ui-state-default ui-corner-all"  id="add-text-textarea" onclick="addselect('textarea');">
        问答题</button>
        <button type="button" class="ui-state-default ui-corner-all"  id="add-matrix">组合选择题</button>        
</div> -->
<div class="actions clearfix">
	<div class="pull-right">
		<a class="btn btn-default" target="_blank" href="{{$this->Html->url('/admin/'.$current_controller.'/import');}}" title="{{__('Import datas')}}"><i class="glyphicon glyphicon-circle-arrow-up"></i> </a>
	</div>

   <ul class="clearfix">
      <li  class="NewDocument"><?php echo $this->Html->link(__('新增题目'), array('controller' => $current_controller,'action'=>'add'),array('target'=>'_blank','class'=>'btn btn-primary')); ?></li>
   	  <li><?php echo $this->Html->link(__('普通列表'),'/admin/Survey/list',array('target'=>'_blank','class'=>'btn btn-default')); ?></li>
   	<li>
	        	<div id="list-by-cate" class="btn-group">
			      <button class="btn btn-default dropdown-toggle"  data-toggle="dropdown" type="button"><i class="glyphicon glyphicon-search"></i> {{__('Category Filter')}}<span class="caret"></span></button>
			      
			      {{eval echo $this->Section->getLeftMenu('Modelcate',
					array(
						'conditions'=>array('model'=> $current_model,'Modelcate.model'=>'Survey' ),
						'parent_id'=>$site_cate_id,
						'ulAttributes'=> array('class'=>'dropdown-menu'),
						'selectedid' => $_GET['cate_id'],
						'subliAttributes2' => array('class'=>'dropdown-submenu'),
						'url' => 'javascript:;',
						'sufli'=>'<li class="search_container">
						<a class="ui-menu-first ui-corner-all" id="link-0" data-id="0" href="javascript:;" tabindex="-1">'.__('View All').'</a>
					</li>',
					));}}			      
			    </div>
	 </li>
   </ul>
</div>
<STYLE type=text/css>
.select-option-list { list-style-type: none; margin: 0; padding: 0;}
.select-option-list li { margin: 0 3px 3px 3px; padding: 0px; padding-left: 1.5em; font-size: 1.4em;border:1px; }
.select-option-list li span { position: absolute; margin-left: -1.3em; }
button {margin:3px;}
table {width:auto;margin-bottom:0 !important;}
h4{font-size:18px;}
thead {background:#D7EBF9;line-height:24px}
.question-options {padding-left:10px;padding-top:5px;}
.question-options td,.question-options th {border:#ccc solid 1px;padding:5px 10px;}
#select-options-manage ,.ui-dialog .ui-dialog-content{height:auto;overflow:visible;}
label{margin-bottom:0px;}
input[type="radio"], input[type="checkbox"]{margin:0 0;}
.ui-state-default {
    border: 1px solid #D3D3D3;
    border-top: 3px solid #aaa;
}
</STYLE>
<script>
function deletequestion(obj)
{
	$('#question_'+obj.id).remove();
}
$(function(){
	$('[id^="tab-question-"]').tabs();
});
</script>

<div>{{$page_navi}}</div>

<div id="survey_question_list">
	{{$question_list}}
</div>
<div>{{$page_navi}}</div>

<div id="select_panel_add" class="clearfix" title="增加问卷题"  style="display:none;"></div>


<div id="select_panel_edit" title="修改问卷题" style="display:none;">
	<!--修改题的内容，通过ajax来加载 -->
</div>